﻿@using Citi.GocAttributes.Domain
@model DatabaseEnums.TypeResultType?

<li>@Html.ActionLink("Rule Association", "Index", "Rule")</li>
<li class="divider"></li>
<li class="nav-header">O&T Attributes</li>

@foreach (int item in Enum.GetValues(typeof(DatabaseEnums.TypeResultType)))
{
    DatabaseEnums.TypeResultType enumValue;
    Enum.TryParse<DatabaseEnums.TypeResultType>(item.ToString(), out enumValue);
    
    <li class="@(Model != null && Model == enumValue ? "active" : string.Empty)">
        @Html.ActionLink(enumValue.GetDescription(), "Index", "TypeRuleResult", new { type = enumValue }, null)
    </li>
}


@*<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.OTFunctionL0 ? "active" : string.Empty)">
    @Html.ActionLink("O&T Flag", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.OTFunctionL0 }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.Area ? "active" : string.Empty)">
    @Html.ActionLink("Area", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.Area }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.Business ? "active" : string.Empty)">
    @Html.ActionLink("Business 1", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.Business }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.Business1 ? "active" : string.Empty)">
    @Html.ActionLink("Business 2", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.Business1 }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.DeckRegional ? "active" : string.Empty)">
    @Html.ActionLink("Deck Regional 1", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.DeckRegional }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.DeckRegional1 ? "active" : string.Empty)">
    @Html.ActionLink("Deck Regional 2", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.DeckRegional1 }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.FPAAnalyst ? "active" : string.Empty)">
    @Html.ActionLink("FPA Analyst", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.FPAAnalyst }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.FPAManager ? "active" : string.Empty)">
    @Html.ActionLink("FPA Manager", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.FPAManager }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.Local ? "active" : string.Empty)">
    @Html.ActionLink("Local", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.Local }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.ZeusCorinth ? "active" : string.Empty)">
    @Html.ActionLink("Zeus/Corinth", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.ZeusCorinth }, null)
</li>
<li class="@(Model != null && Model == DatabaseEnums.TypeResultType.ProjectName ? "active" : string.Empty)">
    @Html.ActionLink("Project Name", "Index", "TypeRuleResult", new { type = DatabaseEnums.TypeResultType.ProjectName }, null)
</li>*@
<li class="divider"></li>